Filter from View or ViewDef without loading

How does one get a Filter from a View or ViewDef without loading the View? And hopefully the solution works in 8.2 as well as 9.x, although if there's a 9.x-only solution I'd still be interested in knowing.

If the Filter in a View has an attribute that is no longer present, loading the View will throw a dialog box that I cannot suppress, which is annoying when batch copying lots of (bad) views between modules. I could parse the stringOf Filter for attribute names and check them, but the only way I can find of getting the Filter is to load the View and then assign from current.


oaklodge - Tue Nov 26 09:13:27 EST 2013

Re: Filter from View or ViewDef without loading
llandale - Tue Nov 26 10:06:23 EST 2013

Never heard of one.  Never had to deal with that dialog either.  Someone may be able to cleverly suppress that dialog and print an error instead.

Some things to try in desperation, presuming nobody else gives a better solution:

[] surround your "load(view)" command with noError/lastError.

[] Search for function "fView_LoadView" somewhere on these forums in the past; then open your modules INvisibly and load the views with that function.

-Louie